luci-app-keepalived: set acl dependency
authorFlorian Eckert <[email protected]>
Tue, 3 Dec 2024 13:18:20 +0000 (14:18 +0100)
committerPaul Donald <[email protected]>
Thu, 6 Mar 2025 17:07:20 +0000 (11:07 -0600)
Because no ACL has been set for luci-app-keepalived in menu.d, the menu
entry is always displayed, even if access is disabled in the
'/etc/config/rpcd' file.

Signed-off-by: Florian Eckert <[email protected]>
applications/luci-app-keepalived/root/usr/share/luci/menu.d/luci-app-keepalived.json

index 3afc43eed4df9bf4b79f00c3c2b0ab4b9d521dc6..be7819fbef841f2ff7ed50da645300f82ea2a6d9 100644 (file)
@@ -5,6 +5,9 @@
                "action": {
                        "type": "alias",
                        "path": "admin/services/keepalived/globals"
+               },
+               "depends": {
+                       "acl": [ "luci-app-keepalived" ]
                }
        },
 
                "action": {
                        "type": "view",
                        "path": "keepalived/overview"
+               },
+               "depends": {
+                       "acl": [ "luci-app-keepalived" ]
                }
        }
 }